package com.example.a13001.shoppingmalltemplate.base;

import com.example.a13001.shoppingmalltemplate.application.ShoppingMallTemplateApplication;
import com.example.a13001.shoppingmalltemplate.utils.MyUtils;

public class AppConstants {

    //站点id
    public static final String COMPANY_ID = MyUtils.getMetaValueInt(ShoppingMallTemplateApplication.getContext(),"companyId");
    public static final String androidos = "Android";
    public static final String imei = "imei";
    //是否第一次登陆
    public static final String FIRST_OPEN = "first_open";
    //用户名常量
    public static final String USER_NAME = "user_name";
    //用户密码常量
    public static final String USER_PWD = "user_pwd";
    /**
     * 三方登录类型常量
     * 	qqlogin QQ登录， wxlogin 微信登录，sinalogin 新浪微博登录
     */
    public static final String LOGINTYPE_QQ = "qqlogin";
    public static final String LOGINTYPE_WECHAT= "wxlogin";
    public static final String LOGINTYPE_SINA = "sinalogin";
    //图形验证码地址
    public static final String IMAGE_CODE = "https://jiujiukeji002.qkk.cn/ValidateCode.aspx?size=2";
    /**
     * 注册类型： 1 普通用户，2 手机注册，3 邮箱注册
     */
    public static final String USER_COMMON= "1";
    public static final String USER_PHONE= "2";
    public static final String USER_EMAIL= "3";
    /**
     * 	加入购物车操作类型，1 立刻购买 2 购买并进入购物车页面 3 加入购物车成功
     */
    public static final int ADD_BUY= 1;
    public static final int ADD_BUYANDCAR= 2;
    public static final int ADD_SUCCESS= 3;
    /**
     * 	商品类型 0 普通商品 1 促销秒杀 3 积分兑换
     */
    public static final int TYPE_COMMON= 0;
    public static final int ADD_SECKILL= 1;
    public static final int ADD_INTERGRAL= 3;
    /**
     * 	来源，pc 电脑端 mobile 移动端
     */
    public static final String FROM_PC= "pc";
    public static final String FROM_MOBILE= "mobile";
    //网络前缀
    public static final String INTERNET_HEAD = "http:";
    //每页展示数量
    public static final int PAGE_SIZE=10;
    //新闻资讯频道id
    public static final String News_ID = "104";
    //商品分类频道id
    public static final String CLASSIFY_ID = "105";
    //促销秒杀频道id
    public static final String SECLILL_CHANEL_ID = "108";
    //积分兑换频道id
    public static final String CREDITS_CHANEL_ID = "109";

    //首页banner列表lable
    public static final String BANNER_LABLE = "sjsybanner";
    /**
     * 是否推荐常量
     */
    public static final String ELITE_YES = "1";
    public static final String ELITE_NO = "2";
    /**
     * 是否新品常量
     */
    public static final String XINPIN_YES = "1";
    public static final String XINPIN_NO = "2";

    /**
     * 广告相关
     */
    public static final String photoId = "photoId";
    public static final String photoName = "photoName";
    public static final String photoPath = "photoPath";
    public static final String photoLink = "photoLink";
}